<?php
$arguments['title'] = "磁导航路点";
$arguments['location'] = array(
    "首页",
    "地图",
    "磁导航路点",
);
$arguments['css'] = array(
    PUBLIC_LIB.'js/core/Pagination/kkpager_orange.css',
    PUBLIC_LIB.'fonts/hui_iconfont/iconfont.css',
    PUBLIC_LIB.'css/biz/enhanced.css',
    PUBLIC_LIB.'js/core/Dropdownlist/chosen.css',
    PUBLIC_LIB.'js/core/fancybox/jquery.fancybox-1.3.4.css',
);
$arguments['js'] = array(
    PUBLIC_LIB.'js/core/fancybox/jquery-1.7.1.js',
    PUBLIC_LIB.'js/core/Pagination/kkpager.min.js',
    PUBLIC_LIB.'js/core/DatePicker/WdatePicker.js',
    PUBLIC_LIB.'js/biz/custominput.js', 
    PUBLIC_LIB.'js/core/Dropdownlist/chosen.jquery.js',  
    PUBLIC_LIB.'js/biz/pagelist.js',
    PUBLIC_LIB.'js/core/Tooltip/tooltip.js',
    PUBLIC_LIB.'js/biz/ajaxfun.js',
    PUBLIC_LIB.'js/core/fancybox/jquery.fancybox-1.3.4.js',
    PUBLIC_LIB.'js/core/fancybox/jquery.fancybox-1.3.4.pack.js',
    PUBLIC_LIB.'js/biz/agvRoadList.js',     
);
importHeader($arguments);
?>
<div class="formtitle"><span>磁导航路点</span></div>
    <div class="search">
        <FORM id="form" method="post">
    
            <p>
            <div class="label_title">
                <label for="current_state">当前状态：</label>
            </div>
            <div class="search_text">
                <select class="dfinput search_width" id="current_state" name="current_state">
                        <option value="全部">全部</option>
                        <option  value="使用中">使用中</option>
                        <option value="维护中">维护中</option>
                </select>    
            </div>
            <div class="label_title">
                <label for="road_rfid">RFID：</label>
            </div>
            <div class="search_text">
                <input  type="text" class="dfinput search_width" id="road_rfid" name="road_rfid" value="" />
            </div>
            <button type="button" class="tool tool_left" id="search" style="width:100px;"><i class="Hui-iconfont">&#xe683;</i>查询</button>
            <!-- <div class="tool tool_btn" id="addRoad"><i class="Hui-iconfont">&#xe600;</i>新增</div> -->
            <button type="button" class="tool tool_left" id="addRoad" style="width:100px;"><i class="Hui-iconfont">&#xe600;</i>新增</button>
            </p>
            <p>
                <div class="label_title">
                    <label for="floors">楼层：</label>
                </div>
                <div class="search_text">
                <input  type="text" class="dfinput search_width" id="floors" name="floors" value="" />
                </div>
                <!-- <div class="search_text">
                    <select class="dfinput search_width" id="floors" name="floors">
                            <option value="全部">全部</option>
                            <option value="一层">一层</option>
                            <option value="二层">二层</option>
                            <option value="三层">三层</option>
                    </select>
                </div>  -->
                <div class="label_title">
                    <label for="workArea">工作区：</label>
                </div>
                <div class="search_text">
                    <select class="dfinput search_width" id="workArea" name="workArea">
                            <option value="全部">全部</option>
                            <option value="仓库">仓库</option>
                            <option value="成品区">成品区</option>
                            <option value="检验区">检验区</option>
                    </select>
                </div> 
            </p>
            <p>
                <div class="label_title">
                    <label for="zoom_view">场景：</label>
                </div>
                <div class="search_text">
                    <select class="dfinput search_width" id="zoom_view" name="zoom_view">
                            <option value="全部">全部</option>
                            <option value="仓库">仓库</option>
                            <option value="成品区">成品区</option>
                            <option value="检验区">检验区</option>
                    </select>
                </div> 
                <div class="label_title" style="width:105px;">
                    <label>&nbsp;可否长期停靠：</label>
                </div>
                <div class="span_check">
                    <input type="radio" name="state" id="state1" value="none" />
                    <label for="state1" class="label_checkbox">全部</label>   
                </div>
                <div class="span_check">
                    <input type="radio" name="state" id="state1" value="-1" />
                    <label for="state1" class="label_checkbox">是</label>   
                </div>
                <div class="span_check">
                    <input type="radio" name="state" id="state2" value="0"/>
                    <label for="state2" class="label_checkbox">否</label>  
                </div>
            </p>
        </FORM>  
    </div>
    <div class="table_box tablelist">
        <table width="160%">
            <tr>
                <th width="5%">路点编号</th>
                <th width="5%">坐标</th>
                <th width="8%">可否精确定位</th>
                <th width="8%">可否长期停靠</th>
                <th width="8%">可否原地转向</th>
                <th width="5%">是否占用</th>
                <th width="5%">占用者id</th>
                <th width="8%">占用开始时间</th>
                <th width="5%">是否锁定</th>
                <th width="8%">锁定开始时间</th>
                <th width="5%">保护区计数</th>
                <th width="10%">操作</th>
                <th width="5%">路径</th>
                <th width="5%">楼层</th>
                <th width="5%">工作区</th>
                <th width="5%">场景</th>
               
            </tr>
        </table>
        <table width="160%">
            <tr>
                <td width="5%">0077ccxcx</td>
                <td width="5%">100,200</td>
                <td width="8%">使用中</td>
                <td width="8%">是</td>
                <td width="8%">使用中</td>
                <td width="5%">100,200</td>
                <td width="5%">100,200</td>
                <td width="8%">100,200</td>
                <td width="5%">100,200</td>
                <td width="8%">100,200</td>
                <td width="5%">100,200</td>
                <td width="10%">
                    <a href=""><div class="tools tool_left" id="detail"><i class="Hui-iconfont">&#xe695;</i>详情</div></a>
                    <a href=""><div class="tools tool_left" id="roadEdit"><i class="Hui-iconfont">&#xe60c;</i>编辑</div></a>
                    <a href="javascript:agvRoadDelete();"><div class="tools tool_left"><i class="Hui-iconfont">&#xe609;</i>删除</div></a>
                </td>
                <td width="5%">二层</td>
                <td width="5%">二层</td>
                <td width="5%">原料仓库，成品区</td>
                <td width="5%">成品区</td>
            </tr>
            <?php
                if(isset($releaseList) && !empty($releaseList->list) && count($releaseList->list)>0){
                    foreach($releaseList->list as $release){
                        echo '<tr>
                            <td width="20%">',$release->vin,'</td>  
                            <td width="5%">',$release->state,'</td>  
                            <td width="15%">',$release->releaseType,'</td> 
                            <td width="15%">',$release->proposer,'</td> 
                            <td width="10%">',$release->proposerTime,'</td> 
                            <td width="15%">',$release->approver,'</td> 
                            <td width="10%">',$release->approverTime,'</td>
                            <td width="10%">',$release->approverTime,'</td> 
                            <td width="10%">';
                                
                                if($release->status==1){
                                    echo '<a href="#" onClick="release(\'',$release->vehicleId,'\',\'',$release->vin,'\')"><div class="tools tool_left"><i class="Hui-iconfont">&#xe6e1;</i>放行</div></a>';
                                }
                               
                                echo '</td></tr>';
                    }
                }else{
                    echo '<tr><td colspan="8">',isset($noAuth)?$noAuth:"",'没有查询到任何放行信息</td></tr>';
                }
            ?>
           
            
        </table>
    </div>
    <div class="pager" id="kkpager" data-total="<?php 
        if (empty($releaseList->list))
        {
            echo 1;
        }
        else 
        {
            echo $releaseList->page; 
        }
        ?>"></div>
<?php importFooter();?>